package com.xindacloud.sms.console.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author author
 */
@Data
@Builder
@ApiModel(value = "短信通道组实体对象")
public class SmsAgentGroup implements Serializable {

    private static final long serialVersionUID = 1570670228111L;
    /**
     * 主键
     * UUID
     * isNullAble:0
     */
    @ApiModelProperty(value = "通道组ID", name = "groupId")
    @TableId(type = IdType.UUID)
    private String groupId;

    /**
     * nexmo,sinch,cm等供应商
     * isNullAble:0
     */
    @ApiModelProperty(value = "短信通道组名称必须是 nexmo,sinch,cm其中之一", name = "groupName", allowableValues = "nexmo,sinch,cm")
    private String groupName;

    /**
     * True表示可用，false表示不可用
     * isNullAble:1
     */
    @ApiModelProperty(value = "True表示可用，false表示不可用", name = "status", allowableValues = "true,false")
    private Boolean status;

    private Integer routeId;

    /**
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    @ApiModelProperty(value = "创建时间 yyyy-MM-dd HH:mm:ss", name = "createTime")
    //@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime createTime;
}
